package com.school.chapter01.homework;

public class StudentsArrayTest {
    public static void main(String[] args) {
        StudentsArray<Students> studentsStudentsArray = null;
//        try {
            studentsStudentsArray = new StudentsArray<>(10);
            studentsStudentsArray.addLast(new Students(1, "小明", 18, "男", "111"));
            studentsStudentsArray.addLast(new Students(2, "小a", 18, "男", "112"));
            studentsStudentsArray.addLast(new Students(3, "小b", 18, "男", "113"));
            studentsStudentsArray.addLast(new Students(4, "小c", 18, "男", "114"));
            studentsStudentsArray.addLast(new Students(5, "小d", 18, "男", "115"));
            studentsStudentsArray.addLast(new Students(6, "小e", 18, "男", "116"));
            studentsStudentsArray.addLast(new Students(7, "小f", 18, "男", "117"));
            studentsStudentsArray.addLast(new Students(8, "小g", 18, "男", "118"));
            studentsStudentsArray.addLast(new Students(9, "小h", 18, "男", "119"));
            studentsStudentsArray.addLast(new Students(10, "小i", 18, "男", "120"));
            studentsStudentsArray.deleteByIndex(0);
//        } catch (Exception e) {
//            System.out.println(e.getMessage());
//        }
        System.out.println(studentsStudentsArray);
    }
}
